package com.xudayong.Demo;
//方法重载基本练习
public class Demo03 {
    public static void main(String[] args) {
 methods method= new methods();
 method.m(10);
 method.m(6,6.8);
 method.m("加油");
    }
    static class methods{
        public void m(int i){
            System.out.println(i+i);
        }
        public void m(int i,double n){
            System.out.println(i*n);
        }
        public void m(String b){
            System.out.println(b);
        }
    }
}
